package com.facotry.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * --- 代码敲烂 月薪过万 ---
 *
 * @author 崔瑜航
 * @date 2024/7/24
 * @desc
 */
@HeadRowHeight(20) // 指定列头行高

public class worker {

    @ExcelIgnore
    private Long wId;
    @ColumnWidth(10) // 指定列宽
    @ExcelProperty("员工ID")
    private Long wWid;
    @ColumnWidth(15) // 指定列宽
    @ExcelProperty("姓名")
    private String wName;
    @ColumnWidth(20) // 指定列宽
    @ExcelProperty("所属部门")
    private String wType;
    @ColumnWidth(15) // 指定列宽
    @ExcelProperty("所属角色")
    private String wRole;
    @ColumnWidth(10) // 指定列宽
    @ExcelProperty("员工状态")
    private String wState;
    @ColumnWidth(10) // 指定列宽
    @ExcelProperty("创建人")
    private String wCreateBy;
    @ColumnWidth(25) // 指定列宽
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date wCreateTime;

    @Override
    public String toString() {
        return "worker{" +
                "wId=" + wId +
                ", wWid=" + wWid +
                ", wName='" + wName + '\'' +
                ", wType='" + wType + '\'' +
                ", wRole='" + wRole + '\'' +
                ", wState='" + wState + '\'' +
                ", wCreateBy='" + wCreateBy + '\'' +
                ", wCreateTime=" + wCreateTime +
                '}';
    }

    public Long getwId() {
        return wId;
    }

    public void setwId(Long wId) {
        this.wId = wId;
    }

    public Long getwWid() {
        return wWid;
    }

    public void setwWid(Long wWid) {
        this.wWid = wWid;
    }

    public String getwName() {
        return wName;
    }

    public void setwName(String wName) {
        this.wName = wName;
    }

    public String getwType() {
        return wType;
    }

    public void setwType(String wType) {
        this.wType = wType;
    }

    public String getwRole() {
        return wRole;
    }

    public void setwRole(String wRole) {
        this.wRole = wRole;
    }

    public String getwState() {
        return wState;
    }

    public void setwState(String wState) {
        this.wState = wState;
    }

    public String getwCreateBy() {
        return wCreateBy;
    }

    public void setwCreateBy(String wCreateBy) {
        this.wCreateBy = wCreateBy;
    }

    public Date getwCreateTime() {
        return wCreateTime;
    }

    public void setwCreateTime(Date wCreateTime) {
        this.wCreateTime = wCreateTime;
    }
}
